Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
Printing Messages / PostScript Imaging Messages


GXPostScriptDoPageTrailer

QuickDraw GX sends the GXPostScriptDoPageTrailer message to generate the page trailer that is appended to the end of the PostScript program for a page. You can override the GXPostScriptDoPageTrailer message if you need to add comments to the page trailer. Your override of the GXPostScriptDoPageTrailer message must match the following formal declaration:

OSErr MyPostScriptDoPageTrailer (
                        gxPostScriptImageDataHandle hImageData);
hImageData A handle to the PostScript imaging system structure.
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
QuickDraw GX sends the GXPostScriptDoPageTrailer message at the end of every page to provide any features requiring control.

The default implementation of the GXPostScriptDoPageTrailer message sends the GXPostScriptEjectPage message to eject a page. You can override this message to create a PostScript page trailer.

SPECIAL CONSIDERATIONS
You usually forward the GXPostScriptDoPageTrailer message to allow other message handlers the opportunity to perform page-termination tasks and so that the default implementation can perform its operations.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.
The default implementation of the GXPostScriptDoPageTrailer message can also return the communications errors that are listed in Table 4-2 on page 4-42.

SEE ALSO
The PostScript imaging system structure is described on page 4-26.

The GXPostScriptEjectPage message is described in the next section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help